CSS: A Power Course for Web Artists: Designing and styling websites with CSS3 by Team Htmleceous
Author:Team Htmleceous [Htmleceous, Team]
Language: eng
Format: azw3
Publisher: Htmleceous
Published: 2015-04-15T16:00:00+00:00
Listing 4.10: /c04/background-image-2.html
<!DOCTYPE html>
<html>
<head>
<title> Background Image </title>
<style>
body {
background-image: url(images/flower.png);
background-repeat: repeat-x;
}
</style>
</head>
<body>
<p>Apple is usually round, red or yellow, edible fruit of a small tree, Malus sylvestris, of the rose family.</p>
</body>
</html>
Figure 13
The background-attachment property lets you specify whether the background image should stay in one position or moves as the user scroll the page. This property can have two values: fixed and scroll. When you use the fixed value, the image stays in the same position of the page. Limiting 4.11 shows the use of this property. Figure 14 shows the result. Now, when you scroll the text the image should stay in the same position.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(21022)
Hello! Python by Anthony Briggs(20301)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(18663)
Dependency Injection in .NET by Mark Seemann(18452)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17976)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17720)
Kotlin in Action by Dmitry Jemerov(17634)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16942)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(16543)
Grails in Action by Glen Smith Peter Ledbrook(15681)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10498)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(8059)
Microservices with Go by Alexander Shuiskov(7824)
Practical Design Patterns for Java Developers by Miroslav Wengner(7725)
Test Automation Engineering Handbook by Manikandan Sambamurthy(7678)
Angular Projects - Third Edition by Aristeidis Bampakos(7168)
The Art of Crafting User Stories by The Art of Crafting User Stories(6614)
NetSuite for Consultants - Second Edition by Peter Ries(6536)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(6309)